import React from 'react'
import { connect } from 'react-redux'

function CountB(props) {
    return (
        <div>
            <span>{props.state.value}</span>
        </div>
    )
}

/**
 * 
 * @param{*} state
 */
const mapStateToProps = (state) => {
    console.log(state);
    return {
        state
    }
}

export default connect(mapStateToProps)(CountB)